package com.example.myproject.java8.fanxing;

/**
 * Created by xi on 2018/9/16.
 */
public class Supersub {
    private String age;

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public static void main(String[] args) {
        De s1 = new De();
        s1.setName("sdds");
        Supersub supersub0 = new Supersub();
        Supersub supersub1 = s1;
        De de = (De) supersub0;
        System.out.println(de.getName());

    }
   static class De extends Supersub{
        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
